package controllers;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;

import models.PageModel;
import entities.Page;

public class AboutUsServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		PageModel pageModel = PageModel.getInstance();
		Page aboutus = pageModel.getAboutUs();
		
		request.setAttribute("aboutus", aboutus);
		try {
			request.getRequestDispatcher("/pages/about_us.jsp").forward(request, response);
		} catch (ServletException e) {
			e.printStackTrace();
		}
	}
}
